﻿using System.Text;

namespace Dragon.Library.Utility.Entity.Mail
{
    public sealed class SendEntity
    {
        /// <summary>
        /// 发件人
        /// </summary>
        public AddressEntity From { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public AddressEntity[] To { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Subject { get; set; }

        /// <summary>
        /// 抄送
        /// </summary>
        public AddressEntity[] Cc { get; set; }

        /// <summary>
        /// 暗抄送
        /// </summary>
        public AddressEntity[] Bcc { get; set; }

        /// <summary>
        /// 主题是否可为html
        /// </summary>
        public bool IsBodyHtml { get; set; }

        /// <summary>
        /// BodyEncoding
        /// </summary>
        public Encoding BodyEncoding { get; set; }

        /// <summary>
        /// 主体内容
        /// </summary>
        public string Body { get; set; }

        public Priority Priority { get; set; }

        /// <summary>
        /// 发送的客户端配置信息
        /// </summary>
        public Client Client { get; set; }

        public SendEntity()
        {
            To = new AddressEntity[0];
            Cc = new AddressEntity[0];
            Bcc = new AddressEntity[0];
        }
    }
}
